/* GPSBabel integration */
static char *erase;
+static char *erase_only;
static
arglist_t dg100_args[] = {
{ "erase", &erase, "Erase device data after download",
"0", ARGTYPE_BOOL, ARG_NOMINMAX },
+ { "erase_only", &erase_only, "Only erase device data, do not download anything",
+ "0", ARGTYPE_BOOL, ARG_NOMINMAX },
ARG_TERMINATOR
};
static void
dg100_read(void)
{
+ if (*erase_only == '1') {
+ dg100_erase();
+ return;
+ }
dg100_getfiles();
if (*erase == '1') {
dg100_erase();
<title>Command showing DG-100 download and erase on Linux</title>
<para><userinput>gpsbabel -t -i dg-100,erase -o gpx /dev/ttyUSB0 outputfile.gpx</userinput></para>
</example>
+<example id="dg-100-on-linux-erase_only">
+ <title>Command showing DG-100 erase_only option on Linux</title>
+ <para><userinput>gpsbabel -t -i dg-100,erase_only /dev/ttyUSB0</userinput></para>
+</example>
<para>
The DG-100 provides a physical USB interface to the host computer, but